home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12177 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!netnews
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ newbie asks for help
  5. Date: 18 Mar 1996 18:15:43 GMT
  6. Organization: Netcom
  7. Message-ID: <4ik98f$14k@reader2.ix.netcom.com>
  8. References: <31488AC8.1557@cco.caltech.edu> <4ik2vd$euq@dub-news-svc-4.compuserve.com>
  9. NNTP-Posting-Host: den-co8-14.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-NETCOM-Date: Mon Mar 18 10:15:43 AM PST 1996
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. In article <4ik2vd$euq@dub-news-svc-4.compuserve.com>, 
  16. 76623,2065@compuserve.com says...
  17. >
  18. >In <31488AC8.1557@cco.caltech.edu>, Xuhua Li <xuhua@cco.caltech.edu> writes:
  19. >>The following C++ programs from Stephen Prata's book <<C++ Primer Plus>>
  20. >>does not work properly compiled by Microsoft C++ 4.0 under Window 95. 
  21. >>Can anybody help me out there?
  22. >
  23. ><snip>
  24. >
  25. >In short, to solve your problem end your cout's with 'endl' instead of \n
  26. >like this:
  27. >
  28. >        cout << "starting\a" << endl;
  29. >instead of
  30. >        cout << "starting\a\n";
  31.  
  32.  
  33. Good idea, but I tried this first.  It seems to be more complex
  34. than that, like cout is getting closed as soon as EOF is encountered
  35. on cin.  Anyone else?
  36.  
  37. John Lilley
  38.  
  39.